package com.design.strategy;

import com.design.strategy.behavior.AttackJYSG;
import com.design.strategy.behavior.DefendJZZ;
import com.design.strategy.behavior.DisplayQSEB;
import com.design.strategy.behavior.RunJCTQ;

public class Test {

    public static void main(String[] args) {
        RoleA roleA = new RoleA("zhangsan");
        roleA.setiAttackBebavior(new AttackJYSG());
        roleA.setiDefendBehavior(new DefendJZZ());
        roleA.setiDisplayBehavior(new DisplayQSEB());
        roleA.setiRunBehavior(new RunJCTQ());

        roleA.attack();
        roleA.defend();
        roleA.display();
        roleA.run();

    }
}
